ImageGear Professional v18 for Mac
Image Orientation

Orientation parameters allow you to rotate and flip an image on screen without changing the image bitmap.

Normal image orientation is top on top and left on left (i.e., image top on screen top, and image left on screen left), which can be specified with the IG_DSPL_ORIENT_TOP_LEFT constant.

IG_DSPL_ORIENT_RIGHT_TOP (i.e., top on right and left on top) constant effectively rotates the image by 90 degrees clockwise. This can be done with the following code fragment:

 
Copy Code

- (IBAction)mnuDisplayOrientRIGHT_TOP:(id)sender {
    if(IG_image_is_valid(hIGear))
    {
        // Set display orientation to IG_DSPL_ORIENT_RIGHT_TOP
        IG_dspl_orientation_set( hIGear, 0, IG_DSPL_ORIENT_RIGHT_TOP);
        // Update main view
        [mainScrollViewOutlet setNeedsDisplay:YES];
    }
}

The sample below demonstrates the image oriented to right-and-top (IG_DSPL_ORIENT_RIGHT_TOP):

See Also

IG_dspl_orientation_set

 

 


©2016. Accusoft Corporation. All Rights Reserved.

Send Feedback